package com.xc.h05.mapper;

import com.xc.h05.entity.UserCourse;
import org.apache.ibatis.annotations.Param;

/**
* @author 30658
* @description 针对表【user_course】的数据库操作Mapper
* @createDate 2025-03-07 19:54:45
* @Entity com.xc.h05.entity.UserCourse
*/
public interface UserCourseMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UserCourse record);

    int insertSelective(UserCourse record);

    UserCourse selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserCourse record);

    int updateByPrimaryKey(UserCourse record);

//    根据用户id和课程id删除

    int deleteByUserIdAndCourseId(@Param("userId") Long userId, @Param("courseId") Long courseId);
}
